package com.llbnk.springcoding.dao;

import com.llbnk.springcoding.mapper.user_info.UserMapper;
import com.llbnk.springcoding.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
public class UserNewDao {

    @Autowired
    private UserMapper userMapper;

    public int insert(User user){
        return userMapper.insert(user);
    }

    public User selectByUserId(Long userId){
        return userMapper.selectByUserId(userId);
    }
}
